﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using Traceability.ErrorCode;

namespace Traceability.Write.Api.Application.Command.CommodityCommand
{
    public class UpdateCommodityCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int CommodityId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public int CommodityNameId { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string Cover { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string C_Times { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public string Time { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string Permit { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string Enterprise { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public string Degree { get; set; } = "0";
        /// <summary>
        /// 创建人
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        public int? UpdateId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
